package kr.co.bettersoft.sendme.activity;


import kr.co.bettersoft.sendme.util.SendMeConstant;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;

public class SendMeLauncherActivity extends Activity {
	String TAG = "SendMeLauncherActivity";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// 터치시 업데이트는 원래 되던거니까 여기가 아님
//		if(selectPrefReceiveMessageListOpened()){
//			Log.d(TAG,"selectPrefReceiveMessageListOpened:opened");
//		}else{
//			Log.d(TAG,"selectPrefReceiveMessageListOpened:closed");
//		}
		
//		// 화면 상단의 타이틀바를 제거 한다.
//		requestWindowFeature(Window.FEATURE_NO_TITLE );		
//		setContentView(R.layout.activity_send_me_intro);
		Intent i = new Intent(SendMeLauncherActivity.this, SendMeIntroActivity.class);
		startActivity(i);
		finish();
	}
	
	
	
	
	/**
	 * SharedPreference 에 상태를 확인한다 (받은 메시지 리스트 열림)
	 *  푸시 받아서 업데이트 용도
	 */
	public boolean selectPrefReceiveMessageListOpened() {
		Log.d(TAG,"selectPrefReceiveMessageListOpened");
		boolean openedYn = false;
		SharedPreferences mSharedPreference = getSharedPreferences(SendMeConstant.SENDME_PREFERENCE, Activity.MODE_PRIVATE);
		openedYn = mSharedPreference.getBoolean("receive_message_list_open_yn", false);
		
		return openedYn;
	}
	

}
